# rules.bsp.mk - make rules
#
# Copyright 2014-2016 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.
#
# modification history
# --------------------
# 18aug16,cfm  removed the redundant image-tag operation (V7PRO-3207)
# 27aug15,pee  moved to new post build rule (V7COR-3501)
# 27feb15,y_c  added rule for adding image-tag. (US55212)  
# 09oct14,cfm  created (V7PRO-1234)
#
# DESCRIPTION
# This file contains definations for building VxWorks for the XLNX ZYNQ 7000
# family boards.
#

# INTERNAL
# This file should only contain rules specific to the BSP.  Definitions
# specific to this BSP should be placed in the defs file (defs.bsp.mk)
#

# adjust lma for all sections.

__WRVX_BSP_POST_BUILD_RULE += @                                    \
        $(CP) $@ $@_swap ;                                         \
        $(OBJCPY) --change-section-lma .*+0x$(LOCAL_MEM_PHYS_ADRS) \
                  --adjust-start 0x$(LOCAL_MEM_PHYS_ADRS)          \
                  --no-change-warnings $@ > /dev/null 2>&1 ;
